package com.xinzhidi.web.onlineMonitor.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 在线监测vo对象
 *
 * @author cx
 * @date 2023-06-09
 */
@ApiModel(value = "在线监测vo对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class OnlineMonitorVo {

    @ApiModelProperty(value = "阀门dtuId")
    private Long valveDtuId;

    @ApiModelProperty(value = "阀门uuid")
    private String valveUuid;

    @ApiModelProperty(value = "户用热量表dtuId")
    private Long heatDtuId;

    @ApiModelProperty(value = "户用热量表uuid")
    private String heatUuid;

    @ApiModelProperty(value = "户用阀门地址域")
    private String valveAddress;

    @ApiModelProperty(value = "户用热量表地址域")
    private String heatAddress;

    @ApiModelProperty(value = "阀门设备编号集合")
    private List<String> valveCode;

    @ApiModelProperty(value = "热量表设备编号集合")
    private List<String> heatCode;

    @ApiModelProperty(value = "小区id")
    private Long plotId;

    @ApiModelProperty(value = "小区名称")
    private String plotName;

    @ApiModelProperty(value = "楼栋id")
    private Long buildId;

    @ApiModelProperty(value = "楼栋名称")
    private String buildName;

    @ApiModelProperty(value = "单元id")
    private Long unitId;

    @ApiModelProperty(value = "单元名称")
    private String unitName;

    @ApiModelProperty(value = "住户id")
    private Long householdId;

    @ApiModelProperty(value = "住户名称")
    private String householdName;

    @ApiModelProperty(value = "楼层")
    private Integer floor;

    @ApiModelProperty(value = "门牌号")
    private String houseNumber;

    @ApiModelProperty(value = "瞬时热量")
    private String thermalPower;

    @ApiModelProperty(value = "瞬时流量")
    private String velocityFlow;

    @ApiModelProperty(value = "供水温度")
    private BigDecimal waterSupplyTemperature;

    @ApiModelProperty(value = "回水温度")
    private BigDecimal returnWaterTemperature;

    @ApiModelProperty(value = "累计流量")
    private String totalFlow;

    @ApiModelProperty(value = "累计热量")
    private String currentHeatOrCold;

//    @ApiModelProperty(value = "设备编码（阀门）")
//    private String valveCode;
//
//    @ApiModelProperty(value = "设备编码（热量表）")
//    private String heatCode;

    @ApiModelProperty(value = "阀门开度")
    private String setOpen;

    @ApiModelProperty(value = "热量表抄表时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date thermalCreateTime;

    @ApiModelProperty(value = "阀门表抄表时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date valveCrateTime;

    @ApiModelProperty(value = "室温采集器imei码")
    private String imei;

    @ApiModelProperty(value = "设备(室温采集器)id")
    private String deviceId;

    @ApiModelProperty(value = "室温")
    private BigDecimal temperature;

    @ApiModelProperty(value = "室温抄表时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String reportTime;

}